package com.htgd.gardenexpo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author: 王秀田
 * @date: 2024/12/13 13:43
 * @description: TODO
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("wx_user_step")
@ApiModel(value="WxUserStep对象", description="用户微信步数表")
public class WxUserStep implements Serializable {

    private static final long serialVersionUID = 4324663154963719712L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type =  IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "微信用户标识")
    private String openId;

    @ApiModelProperty(value = "步数")
    private Integer step;

    @ApiModelProperty(value = "日期")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime stepDate;
}
